package com.llx.tools;
/**
 * 
 * @author lilixiang
 *
 */
public class HttpUtils {
	public final static HttpUtils httpUtils = new HttpUtils();
	/**
	 * 
	 */
	private HttpUtils(){
		
	}
	/**
	 * 
	 * @return new Object of HttpUtils
	 */
	public static HttpUtils getNewInstance(){
		return new HttpUtils();
	}
	
	/**
	 * 
	 * @return httpUtils if exist or create new one
	 */
	public static HttpUtils getSingleInstance(){
		return httpUtils;
	}
	
	public static void main(String[] args) {
		for(int i=0;i<10;i++){
			System.out.println(HttpUtils.getNewInstance()+"---");
			System.out.println(HttpUtils.getSingleInstance()+"----");
		}
	}

}
